package a07_InterfaceAbstract;

/**
 * @Author quan
 * @Description 子类：篮球教练
 * @Date 2023/1/29 1:05
 */
public class BasketballCoach extends Coach{
    public BasketballCoach() {
    }

    public BasketballCoach(String name, int age) {
        super(name, age);//注意super的用法
    }

    //重写Coach类中的teach方法
    @Override
    public void teach() {
        System.out.println("篮球教练在教怎么打篮球");
    }
}
